package com.jekun.helloworld.controller;

import com.jekun.helloworld.designmode.proxy.aoptest.SMSAndMailSender;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Joey
 * @Date 2021/12/14 14:20
 * @Description
 */
@RestController
public class HelloWorldController {

    @SMSAndMailSender
    @GetMapping("helloworld")
    public String helloWorld(){
        return "hello world haha 你看我扎不扎你就完事儿了 ，疼不，就问你疼不疼 ，疼";
    }

    public static void main(String[] args) {
        Integer mon = 202201;
        String month = mon.toString();
        String s = month.substring(0, 4) + "-" + month.substring(4, 6) + "-" + "01";
        System.out.println(s);
    }
}
